#ifndef __GAMELAYER_H__
#define __GAMELAYER_H__

#include "../Generals/MTGame.h"
using namespace cocos2d;

class GameLayer :public CCLayer
{
public:
	GameLayer(void);
	~GameLayer(void);

    // Here's a difference. Method 'init' in cocos2d-x returns bool, instead of returning 'id' in cocos2d-iphone
    virtual bool init();  

	void updateSceneScroll(float dt);
	
	void setSceneScrollPostion(CCPoint pos);
	
    //void onWalkDone(CCNode *pTarget, void *data);
    
    // a selector callback
    void menuCloseCallback(CCObject* pSender);
	//void menuCallBackMove(CCObject* pSender);

    // implement the "static node()" method manually
    CREATE_FUNC(GameLayer);

	void showTip(const char *tip, CCPoint startPos);
	void onShowTipDone(CCNode *pSender);
};

#endif